<?php
/**
 *
 * Created by PhpStorm.
 * User: Egor <http://gitee.com/seosite>
 * Date: 2018/6/19
 * Time: 下午1:28
 * Updatetime:
 * updater：
 */
namespace Wap\Controller;
use Think\Controller;

class BaseController extends Controller{

    protected $userInfo;

    protected $bo_id;

    public function __construct()
    {

        $userInfo = decode_token();

//        var_dump($userInfo);

        $this->userInfo = empty($userInfo) ? "" : (object)$userInfo;

        $info = M('uuid_bo')->where(['uuid' => $_POST['uuid']])->find();

        if ($info['bo_id']) {
            $this->bo_id = $info['bo_id'];
        } else {
            $this->bo_id = 0;
        }
    }

}